package com.demdudes.disch.handler;

import java.util.HashMap;
import java.util.Map;

import com.badlogic.gdx.graphics.OrthographicCamera;
import com.demdudes.disch.gamestates.GameStateEnum;
import com.demdudes.disch.renderer.GameRenderer;
import com.demdudes.disch.renderer.PlayRenderer;

public class GameRendererHandler {

	private Map<GameStateEnum, GameRenderer> stateRenderers;
	
	public GameRendererHandler(OrthographicCamera camera) {
		stateRenderers = new HashMap<GameStateEnum, GameRenderer>();
		stateRenderers.put(GameStateEnum.PLAY, new PlayRenderer(camera));
	}
	
	public GameRenderer getRenderer(GameStateEnum state) {
		return stateRenderers.get(state);
	}
	
}
